1 //+-----------------------------------------------------------------------
3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // Shared definitions needed by unmanaged hosting code
12 // Moved, shared, simplified.
14 // Ported Windows->DevDiv. See SourcesHistory.txt.
16 //------------------------------------------------------------------------
20 //******************************************************************************
24 //******************************************************************************
26 #define CONTENT_TYPE_XPSDOCUMENT L"application/vnd.ms-xpsdocument"
27 #define CONTENT_TYPE_APPLICATION L"application/x-ms-xbap"
28 #define CONTENT_TYPE_MARKUP L"application/xaml+xml"
29 #define CONTENT_TYPE_ZIP L"application/x-zip-compressed"
31 #define FILE_EXT_XPSDOCUMENT L".xps"
32 #define FILE_EXT_APPLICATION L".xbap"
33 #define FILE_EXT_MARKUP L".xaml"
35 //******************************************************************************
37 // Registry Key definitions
39 // Keep in [....] with:
40 // setup\MSI\installerFiles\installDatabase\Registry.txt
41 // Shared\MS\Internal\Registry.cs
42 //******************************************************************************
44 #define RegKey_DotNetFramework L"SOFTWARE\\Microsoft\\.NETFramework"
45 #define RegKey_WPF RegKey_DotNetFramework L"\\Windows Presentation Foundation"
46 // Before v4, this key was .NETFramework\v3.0\Windows Presentation Foundation\Namespaces.
47 #define RegKey_WPF_Namespaces RegKey_WPF L"\\Namespaces"
50 #define RegKey_WPF_Hosting RegKey_WPF L"\\Hosting"
51 #define RegValue_RunUnrestricted L"RunUnrestricted"
52 #define RegValue_NoHostTimeoutSeconds L"NoHostTimeoutSeconds"
53 #define RegValue_DisableSingleVersionOptimization L"DisableSingleVersionOptimization"
54 // #define RegValue_DisableXbapErrorPage -- defined and used in managed code
55 #define RegValue_AutoShowXbapErrorDetails L"AutoShowXbapErrorDetails"
57 #define RegKey_WPF_HostVersions RegKey_WPF_Hosting L"\\Hosts"
59 #define RegKey_WPF_Features RegKey_WPF L"\\Features"
60 #define RegValue_XBAPDisallow L"XBAPDisallow"
61 #define RegValue_XPSDocumentsDisallow L"XPSDocumentsDisallow"
62 #define RegValue_LooseXamlDisallow L"LooseXamlDisallow"
63 // In Registry.cs: MediaImageDisallow, MediaVideoDisallow, MediaAudioDisallow, WebBrowserDisallow, ScriptInteropDisallow